* tramp.texi (Frequently Asked Questions): Add fish shell settings.
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 24 Mar 2014 08:09:42 +0000 (09:09 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 24 Mar 2014 08:09:42 +0000 (09:09 +0100)
doc/misc/ChangeLog
doc/misc/tramp.texi

index 4bbc94d606226ac147438ae0630711ebb852c01d..e886b92d5d19a533a346c61dec7985ca5e8f6aae 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-24  Michael Albinus  <michael.albinus@gmx.de>
+
+       * tramp.texi (Frequently Asked Questions): Add fish shell settings.
+
 2014-03-21  Glenn Morris  <rgm@gnu.org>
 
        * ede.texi (ede-linux):
index 6dd5d2a88d8712cb1ede950e2b85f4c89e703d45..c0a6156a4cf1a65aba7ebda5910c5e5207c58fa9 100644 (file)
@@ -3053,15 +3053,28 @@ setting the cursor at the top of the buffer, and applying the expression
 If it fails, or the cursor is not moved at the end of the buffer, your
 prompt is not recognized correctly.
 
-A special problem is the zsh, which uses left-hand side and right-hand
-side prompts in parallel.  Therefore, it is necessary to disable the
-zsh line editor on the remote host.  You shall add to @file{~/.zshrc}
-the following command:
+A special problem is the zsh shell, which uses left-hand side and
+right-hand side prompts in parallel.  Therefore, it is necessary to
+disable the zsh line editor on the remote host.  You shall add to
+@file{~/.zshrc} the following command:
 
 @example
 [ $TERM = "dumb" ] && unsetopt zle && PS1='$ '
 @end example
 
+Similar fancy prompt settings are known from the fish shell.  Here you
+must add in @file{~/.config/fish/config.fish}:
+
+@example
+function fish_prompt
+  if test $TERM = "dumb"
+     echo "\$ "
+  else
+     @dots{}
+  end
+end
+@end example
+
 Furthermore it has been reported, that @value{tramp} (like sshfs,
 incidentally) doesn't work with WinSSHD due to strange prompt settings.